﻿using UnityEngine;
using System.Collections;

public class SliderScrollBarLink : MonoBehaviour {
	
	UIScrollBar myBar;
	public UISlider mySlider;
	// Use this for initialization
	void Awake () {
		myBar = this.GetComponent<UIScrollBar>();
	}
	
	
	public void NotifyBar()
	{
		myBar.value = 1 - mySlider.value;
	}
		
	public void NotifySlider()
	{
		mySlider.value = 1 - myBar.value;
	}
}
